package com.haohao.web.controller.product.domain;

import java.math.BigDecimal;

import com.haohao.common.annotation.Excel;
import com.haohao.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;


/**
 * 产品信息对象 t_products
 * 
 * @author ruoyi
 * @date 2024-04-18
 */
public class TProducts extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 产品ID */
    private Long id;

    /** 品牌 */
    @Excel(name = "品牌")
    private String brand;

    /** 商品编号 */
    @Excel(name = "商品编号")
    private String productCode;

    /** 商品毛重（kg） */
    @Excel(name = "商品毛重", readConverterExp = "k=g")
    private BigDecimal grossWeight;

    /** 商品产地 */
    @Excel(name = "商品产地")
    private String origin;

    /** 操控方式 */
    @Excel(name = "操控方式")
    private String controlMethod;

    /** 能效等级 */
    @Excel(name = "能效等级")
    private String energyEfficiency;

    /** 变频/定频 */
    @Excel(name = "变频/定频")
    private String frequencyMode;

    /** 类型 */
    @Excel(name = "类型")
    private String type;

    /** 功能 */
    @Excel(name = "功能")
    private String features;

    /** 进货价格（USD） */
    @Excel(name = "进货价格", readConverterExp = "U=SD")
    private BigDecimal purchasePrice;

    /** 售价（USD） */
    @Excel(name = "售价", readConverterExp = "U=SD")
    private BigDecimal sellingPrice;

    /** 数量 */
    @Excel(name = "数量")
    private Long quantity;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setBrand(String brand) 
    {
        this.brand = brand;
    }

    public String getBrand() 
    {
        return brand;
    }
    public void setProductCode(String productCode) 
    {
        this.productCode = productCode;
    }

    public String getProductCode() 
    {
        return productCode;
    }
    public void setGrossWeight(BigDecimal grossWeight) 
    {
        this.grossWeight = grossWeight;
    }

    public BigDecimal getGrossWeight() 
    {
        return grossWeight;
    }
    public void setOrigin(String origin) 
    {
        this.origin = origin;
    }

    public String getOrigin() 
    {
        return origin;
    }
    public void setControlMethod(String controlMethod) 
    {
        this.controlMethod = controlMethod;
    }

    public String getControlMethod() 
    {
        return controlMethod;
    }
    public void setEnergyEfficiency(String energyEfficiency) 
    {
        this.energyEfficiency = energyEfficiency;
    }

    public String getEnergyEfficiency() 
    {
        return energyEfficiency;
    }
    public void setFrequencyMode(String frequencyMode) 
    {
        this.frequencyMode = frequencyMode;
    }

    public String getFrequencyMode() 
    {
        return frequencyMode;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setFeatures(String features) 
    {
        this.features = features;
    }

    public String getFeatures() 
    {
        return features;
    }
    public void setPurchasePrice(BigDecimal purchasePrice) 
    {
        this.purchasePrice = purchasePrice;
    }

    public BigDecimal getPurchasePrice() 
    {
        return purchasePrice;
    }
    public void setSellingPrice(BigDecimal sellingPrice) 
    {
        this.sellingPrice = sellingPrice;
    }

    public BigDecimal getSellingPrice() 
    {
        return sellingPrice;
    }
    public void setQuantity(Long quantity) 
    {
        this.quantity = quantity;
    }

    public Long getQuantity() 
    {
        return quantity;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("brand", getBrand())
            .append("productCode", getProductCode())
            .append("grossWeight", getGrossWeight())
            .append("origin", getOrigin())
            .append("controlMethod", getControlMethod())
            .append("energyEfficiency", getEnergyEfficiency())
            .append("frequencyMode", getFrequencyMode())
            .append("type", getType())
            .append("features", getFeatures())
            .append("purchasePrice", getPurchasePrice())
            .append("sellingPrice", getSellingPrice())
            .append("quantity", getQuantity())
            .toString();
    }
}
